package com.hst.web.base.ui;

import com.hst.core.meta.MetaData;
import com.hst.core.meta.annotation.EField;
import com.hst.core.meta.annotation.EInfo;
import com.hst.core.meta.annotation.FieldQuery;
import com.hst.web.base.proxy.AccountInfoProxy;

@EInfo(name = "account_info", title = "APP用户信息", proxy = AccountInfoProxy.class)
public class AccountInfo extends MetaData {
	
	@EField(title = "APP用户名", query = FieldQuery.EQ, validate = "required|max:20", form=2, idx=0)
	private String userName;
	
	@EField(title = "密码", list=false, editor="password", validate="required|max:16", form=0, idx=1)
	private String password;

	@EField(title = "手机号", form=1, validate = "required|mobile:true|max:20", query = FieldQuery.LIKE, idx=3)
	private String telNumber;

	@EField(title = "邮箱", list=false, form=0, validate = "email:true|max:320", idx=10)
	private String email;
	
	@EField(title = "用户类型", list=false, form=0)
	private String useType = "0";
	
	@EField(title = "注册方式", list=false, form=0)
	private String registerWay = "0";
	
	@EField(title = "账户状态", list=false, form=0)
	private String accountStatus = "00";
	
	@EField(title="证件号", name="papersNumber", form=0, viewer = "papersnumber", validate="required|max:32", query = FieldQuery.LIKE, idx=6)
	private String papersNumber;

	@EField(title="证件类型", name="papersType", form=0, editor="select.papersType",viewer="dict.papersType",validate="required", idx=5)
	private String papersType;

	@EField(title = "姓名", form=1, query = FieldQuery.LIKE, validate = "required|max:100", idx=2)
	private String fullname;
	
	@EField(title="性别", list=false, form=1, name="sex", editor="select.sex", viewer="dict.sex", idx=4)
	private String sex;
	
	@EField(title = "国籍", list=false, form=1, validate = "max:20", idx=11)
	private String nationality;
	
	@EField(title = "籍贯", list=false, form=1, validate = "max:20", idx=12)
	private String nativePlace;
	
	@EField(title = "红名单", list=false, form=0)
	private String redFlag = "0";
	
	@EField(group = "附件", name = "dynamicFace", list = false, title = "人脸照片", form=2, editor = "uploadImg.accountface", idx=99)
	private String dynamicFace;
	
	@EField(title = "实名认证", list=false, form = 0, viewer = "dict.identifyflag", editor = "select.identifyflag", idx=13)
	private String identifyFlag;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelNumber() {
		return telNumber;
	}

	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUseType() {
		return useType;
	}

	public void setUseType(String useType) {
		this.useType = useType;
	}

	public String getRegisterWay() {
		return registerWay;
	}

	public void setRegisterWay(String registerWay) {
		this.registerWay = registerWay;
	}

	public String getAccountStatus() {
		return accountStatus;
	}

	public void setAccountStatus(String accountStatus) {
		this.accountStatus = accountStatus;
	}

	public String getPapersNumber() {
		return papersNumber;
	}

	public void setPapersNumber(String papersNumber) {
		this.papersNumber = papersNumber;
	}

	public String getPapersType() {
		return papersType;
	}

	public void setPapersType(String papersType) {
		this.papersType = papersType;
	}

	public String getDynamicFace() {
		return dynamicFace;
	}

	public void setDynamicFace(String dynamicFace) {
		this.dynamicFace = dynamicFace;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}

	public String getRedFlag() {
		return redFlag;
	}

	public void setRedFlag(String redFlag) {
		this.redFlag = redFlag;
	}

	public String getIdentifyFlag() {
		return identifyFlag;
	}

	public void setIdentifyFlag(String identifyFlag) {
		this.identifyFlag = identifyFlag;
	}
	


}
